package com.ggggeeennn.home.controller;

import com.ggggeeennn.common.core.controller.BaseController;
import com.ggggeeennn.common.core.domain.AjaxResult;
import com.ggggeeennn.home.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/module/statistics")
public class HomeController extends BaseController{

    @Autowired
    private HomeService homeService;

    @GetMapping("/statistics")
    public AjaxResult getStatistics(){
        return success(homeService.getStatistics());
    }
}

